package net.sppan.base.entity.mgEntity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import net.sppan.base.entity.Role;
import net.sppan.base.entity.support.BaseEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * <p>
 * 用户账户表
 * </p>
 *
 * @author SPPan
 * @since 2016-12-28
 */
@Entity
@Table(name = "mg_user")
@Data
public class MgUser extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", nullable = false)
	private Integer id;

	//创建时间
	private Long createadTime;


	//预约时间
	private String appointmentTime;


	//预约讲师名字
	private String teacherName;

	/**
	 * 账户名
	 */
	private String userName;



	/**
	 * 电话
	 */
	private String telephone;


	/**
	 * 住址
	 */
	private String address;


	/**
	 * 3.购车意向：一个月内购买/三个月内购买/六个月内购买/暂无购买意向
	 */
	private String buyCarTime;


	/**
	 * 感兴趣的车型
	 */
	private String interestCarType;

	//留资来源 奖品领取、咖啡领取、workshop领取
	private String sourceType;

	public MgUser() {
		this.createadTime = System.currentTimeMillis();
	}


}
